const state = {
    hotBooks: ['holly', 'wood'],
    count: 1,
    todos:
        [{ id: 1, text: '1111', done: true },
        { id: 2, text: '222', done: false }]
}
const mutations = {
    increment(state) {
        state.count++
    }
}


const getters = {
    doneTodos: state => {
        return state.todos.filter(todo => todo.done)
    }
}

export default {
    namespaced: true,
    state,
    mutations,
    getters
}